package com.dulr.yifutong;

import android.app.Activity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class ConfirmDingDan {
    Activity mRootActivity;
    Button mbuttonConfirmNext;
    EditText meditTextConfirmcommodityName, meditTextConfirmDingDanHao,
            meditTextConfirmJinEr, meditTextConfirmShouxufei,
            meditTextConfirmZongJiner, meditTextConfirmBeiZhu,
            meditTextConfirmDetail;

    ConfirmDingDan(Activity a) {
        mRootActivity = a;
        meditTextConfirmcommodityName = (EditText) mRootActivity
                .findViewById(R.id.editTextConfirmcommodityName);
        meditTextConfirmDingDanHao = (EditText) mRootActivity
                .findViewById(R.id.editTextConfirmDingDanHao);
        meditTextConfirmJinEr = (EditText) mRootActivity
                .findViewById(R.id.editTextConfirmJinEr);
        meditTextConfirmShouxufei = (EditText) mRootActivity
                .findViewById(R.id.editTextConfirmShouxufei);
        meditTextConfirmZongJiner = (EditText) mRootActivity
                .findViewById(R.id.editTextConfirmZongJiner);
        meditTextConfirmBeiZhu = (EditText) mRootActivity
                .findViewById(R.id.editTextConfirmBeiZhu);
        meditTextConfirmDetail = (EditText) mRootActivity
                .findViewById(R.id.editTextConfirmDetail);
        
        mbuttonConfirmNext = (Button) mRootActivity.findViewById(R.id.buttonConfirmNext);
        mbuttonConfirmNext.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                mRootActivity.setContentView(R.layout.activity_insertpaycard);
            }
        });
    }
}
